package apigateway.project.core.predicate;


import apigateway.project.commen.config.Rule;
import apigateway.project.core.context.GlobalContext;

public interface PredicateChainFactory {

    /**
     * 构建断言链条
     * @param rule
     * @return
     */
    GatewayPredicateChain createChain(Rule rule);

    /**
     * 根据断言id获取断言
     * @param predicateId
     * @return
     * @param <T>
     */
    <T> T getPredicateInfo(String predicateId);
}
